
@mixin clearfix {
    &:before,
    &:after {
        content: ' ';
        display: table;
    }

    &:after {
        clear: both;
    }
}

@mixin text-truncate($key) {
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: $key;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@mixin size($width, $height) {
    width: $width;
    height: $height;
}

@mixin square($size) {
    @include size($size, $size);
}


@mixin scrollable() {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}


@mixin text-overflow {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@mixin line-clamp($lines: 2, $line-height: 1.3em) {
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: $lines; 
    overflow: hidden;
    line-height: $line-height;
    max-height: $line-height * $lines;
}

@mixin no-appearance {
    -webkit-appearance: none;
    -moz-appearance: none;
}

@mixin hide-text {
    overflow: hidden;
    text-indent: -9000px;
    display: block;
}
